s = input().split(" ")
a = float(s[0])
b = float(s[1])
c = float(s[2])
d = float(s[3])
e = float(s[4])
f = float(s[5])
delt = a * d - b * c
if delt == 0:
    print("无解")
else:
    x = (e * d - b * f) / delt
    y = (a * f - e * c) / delt
    print("%.1f" % x)
    print("%.1f" % y)